home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3dgrav.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.5 KB  |  64 lines

  1.  
  2. // JavaScript wrapper for r3dgrav.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_DISTANTGRAVITY_H = 1;
  7. include("real/objects/r3force.js")
  8.  
  9.  
  10. var R3CLID_DISTANTGRAVITY = 1449;
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. R3DGRAVA_Position = 1449500;
  19. function SetR3DGRAVA_Position(value) {
  20.   R3Set(this.r3obj, R3DGRAVA_Position, value, R3TID_VECTOR, 0); 
  21. }
  22.  
  23. function GetR3DGRAVA_Position() {
  24.   return R3Get(this.r3obj, R3DGRAVA_Position, R3TID_VECTOR, 0); 
  25. }
  26.  
  27. R3DGRAVA_Direction = 1449501;
  28. function SetR3DGRAVA_Direction(value) {
  29.   R3Set(this.r3obj, R3DGRAVA_Direction, value, R3TID_VECTOR, 0); 
  30. }
  31.  
  32. function GetR3DGRAVA_Direction() {
  33.   return R3Get(this.r3obj, R3DGRAVA_Direction, R3TID_VECTOR, 0); 
  34. }
  35.  
  36. R3DGRAVA_Strength = 1449502;
  37. function SetR3DGRAVA_Strength(value) {
  38.   R3Set(this.r3obj, R3DGRAVA_Strength, value, R3TID_FLOAT, 0); 
  39. }
  40.  
  41. function GetR3DGRAVA_Strength() {
  42.   return R3Get(this.r3obj, R3DGRAVA_Strength, R3TID_FLOAT, 0); 
  43. }
  44.  
  45.  
  46.  
  47. function r3Distantgravity () { 
  48.    this.base = r3God;
  49.    if(arguments.length) {
  50.       this.base(R3CLID_DISTANTGRAVITY, arguments);
  51.    }
  52.    // Methods
  53.  
  54.    // Attributes
  55.    this.GetPosition=GetR3DGRAVA_Position;
  56.    this.SetPosition=SetR3DGRAVA_Position;
  57.    this.GetDirection=GetR3DGRAVA_Direction;
  58.    this.SetDirection=SetR3DGRAVA_Direction;
  59.    this.GetStrength=GetR3DGRAVA_Strength;
  60.    this.SetStrength=SetR3DGRAVA_Strength;
  61. }
  62.  
  63. r3Distantgravity.prototype=new r3Force;
  64. // r3dgrav.h_H